package javaWebMonitor;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;

import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.border.StandardBorderPainter;
import org.jvnet.substance.button.StandardButtonShaper;
import org.jvnet.substance.theme.SubstanceAquaTheme;
import org.jvnet.substance.watermark.SubstanceBubblesWatermark;
import javax.swing.border.TitledBorder;
import javax.swing.border.EtchedBorder;


public class MainFrame extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {

		try {
			UIManager
					.setLookAndFeel("org.jvnet.substance.skin.SubstanceBusinessBlackSteelLookAndFeel");
			JFrame.setDefaultLookAndFeelDecorated(false);
			JDialog.setDefaultLookAndFeelDecorated(true);

			SubstanceLookAndFeel.setCurrentTheme(new SubstanceAquaTheme());
			SubstanceLookAndFeel
					.setCurrentBorderPainter(new StandardBorderPainter());

			SubstanceLookAndFeel
					.setCurrentWatermark(new SubstanceBubblesWatermark());

			SubstanceLookAndFeel
					.setCurrentButtonShaper(new StandardButtonShaper());
			// JButton.setDefaultLookAndFeelDecorated(true);
			EventQueue.invokeLater(new Runnable() {
				public void run() {
					try {
						MainFrame frame = new MainFrame();
						frame.setVisible(true);
					} catch (Exception e) {
						e.printStackTrace();
					}
				}
			});
		 
//			ReadProperties();
			// Maintrigger2.instance().addJob(Mainjob2.class,100);
			// //
			// new QuoteOfTheMomentClient().connect ("000000000001",1);
		} catch (Exception e) {
			System.out.println(e);
		}
		;
	
	}

	/**
	 * Create the frame.
	 */
	public MainFrame() {
		BasicJpanel  basicJpanel=new BasicJpanel();
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 779, 618);
		contentPane = new JPanel();
		contentPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED, null, null), "tre", TitledBorder.CENTER, TitledBorder.TOP, null, null));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		contentPane.add(basicJpanel,BorderLayout.CENTER);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

}
